﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using System.Collections;

namespace displaycongress_desktop
{
    public class URLDecoder
    {
        public URLDecoder(String str)
        {
            byte[] bytes = Decoder.decode(Decoder.HexString2Bytes(str));
            //Console.Write("openen");
            //Console.Write(Encoding.ASCII.GetString(bytes));
            //Engine.sessionScreen.LoadURLViewer(Encoding.ASCII.GetString(bytes));

            Object[] obj = new Object[1];
            obj[0] = Encoding.ASCII.GetString(bytes);

            Engine.sessionScreen.Invoke(Engine.sessionScreen.loadURLViewer, obj);
            //Console.Write(Encoding.ASCII.GetString(bytes));
        }
    }
}